package com.itmake.sample.async.constant;

/**
 * 线程池属性
 *
 * @author Amjacks
 * @since 2023/08/10
 */
public class ThreadPoolConstant {

    private ThreadPoolConstant() {}

    /**
     * 核心线程池大小
     */
    public static final int CORE_POOL_SIZE = 50;

    /**
     * 最大可创建的线程数
     */
    public static final int MAX_POOL_SIZE = 200;

    /**
     * 队列最大长度
     */
    public static final int QUEUE_CAPACITY = 1000;

    /**
     * 线程池维护线程所允许的空闲时间
     */
    public static final int KEEP_ALIVE_SECONDS = 300;
}
